package cn.yunhe.dao;

import cn.yunhe.entity.Insurcate;

import java.util.List;
import java.util.Map;

/**
 * @author 董稳钰
 * @date 2018/9/14 14:13
 */

public interface InsurCateDao {
    //添加保险
    boolean addInsurcate(Insurcate insurcate);
    //修改保险
    boolean updateInsurcate(Insurcate insurcate);
    //获取保险列表
    List<Insurcate> findLikeInsurcates(Map<String, Object> cond);
    //获取保险个数
    int findLikeInsurcatesCount(Map<String, Object> cond);
    //通过id查询保险
    Insurcate getInsurcateById(Insurcate insurcate);
    //通过套餐id查询套餐内包含的保险信息
    List<Insurcate> getInsurcateByComuuid(String comuuid);
    //删除保险
    boolean delInsurcate(Insurcate insurcate);
    //批量删除保险
    boolean delInsurcates(List<String>iuuidList);
    //保险审核通过
    boolean adoptInsurcate(String iuuid);
    //保险审核未通过
    boolean refuseInsurcate(String iuuid);
    //查询所有的保险
    List<Insurcate> getAllInsurcate();
    //查询所有可用的保险
    List<Insurcate>getAllUseableInsurcate();

}
